package com.cargohu.aishouyu.member.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 聊天记录详情VO
 *
 * @author aaron.wang
 * @since 2023-11-27
 */
@Data
@Schema(description = "聊天记录详情VO")
public class ChatHistoryDetailVo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "消息ID")
    private String messageId;

    @Schema(description = "发送人id")
    private Long fromId;

    @Schema(description = "发送人")
    private String fromName;

    @Schema(description = "接收人id")
    private Long toId;

    @Schema(description = "接收人")
    private String toName;

    @Schema(description = "消息内容")
    private String content;

    @Schema(description = "时间")
    private Date time;

    @Schema(description = "消息类型：1是普通文本，2是图片，3是语音")
    private Byte type;

    @Schema(description = "删除标记，1未删除，0已删除")
    private String delFlag;

}

